package com.party.core.model.commune;

import com.party.core.model.BaseModel;

import java.util.Objects;

/**
 * @program: party
 * @description: 奖牌
 * @author: Hua Qunhao
 * @create: 2019-09-03 16:43
 **/
public class CIntegralMedal extends BaseModel {

    //类型id
    private String typeId;
    //奖牌名称
    private String name;
    //次数
    private Integer frequency;
    //奖牌图片url
    private String medalPicUrl;
    //排序
    private Integer soft;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public String getMedalPicUrl() {
        return medalPicUrl;
    }

    public void setMedalPicUrl(String medalPicUrl) {
        this.medalPicUrl = medalPicUrl;
    }

    public Integer getSoft() {
        return soft;
    }

    public void setSoft(Integer soft) {
        this.soft = soft;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CIntegralMedal that = (CIntegralMedal) o;
        return Objects.equals(typeId, that.typeId) &&
                Objects.equals(name, that.name) &&
                Objects.equals(frequency, that.frequency) &&
                Objects.equals(medalPicUrl, that.medalPicUrl);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), typeId, name, frequency, medalPicUrl);
    }

    @Override
    public String toString() {
        return "CIntegralMedal{" +
                "typeId='" + typeId + '\'' +
                ", name='" + name + '\'' +
                ", frequency=" + frequency +
                ", medalPicUrl='" + medalPicUrl + '\'' +
                '}';
    }
}
